package com.party.core.model.partner;

import com.party.core.model.BaseModel;

import java.io.Serializable;
import java.util.Objects;

/**
 * @program: party-temp
 * @description: 会员标签
 * @author: Huaqunhao
 * @create: 2018-08-21 17:28
 **/
public class PartnerMemberLabel extends BaseModel implements Serializable {
    private static final long serialVersionUID = -8191581894782321634L;
/*      `organization_id` varchar(64) COLLATE utf8_bin DEFAULT NULL COMMENT '机构id',
            `label_id` varchar(64) COLLATE utf8_bin DEFAULT NULL COMMENT '标签id',
            `member_id` varchar(64) COLLATE utf8_bin DEFAULT NULL COMMENT '会员id',*/
    private String organizationId;
    private String labelId;
    private String memberId;
    private Integer isMember;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
    }

    public String getLabelId() {
        return labelId;
    }

    public void setLabelId(String labelId) {
        this.labelId = labelId;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public Integer getIsMember() {
        return isMember;
    }

    public void setIsMember(Integer isMember) {
        this.isMember = isMember;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        PartnerMemberLabel that = (PartnerMemberLabel) o;
        return Objects.equals(organizationId, that.organizationId) &&
                Objects.equals(labelId, that.labelId) &&
                Objects.equals(memberId, that.memberId) &&
                Objects.equals(isMember, that.isMember);
    }

    @Override
    public int hashCode() {

        return Objects.hash(super.hashCode(), organizationId, labelId, memberId, isMember);
    }

    @Override
    public String toString() {
        return "PartnerMemberLabel{" +
                "organizationId='" + organizationId + '\'' +
                ", labelId='" + labelId + '\'' +
                ", memberId='" + memberId + '\'' +
                ", isMember=" + isMember +
                '}';
    }
}
